package de.fstyle.test.spring.mvc.security.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("secured2")
public class Secured2TestController {

	@RequestMapping("/test")
	@Secured("ROLE_USER")
	public @ResponseBody String test() {
		return "secured2-test";
	}
	
}
